-- GENERATED SPELL FOR [Warp-Huntress Kula] --


function spell0_32711(pUnit, Event) --@Shoot Gun,n/a--
pUnit:FullCastSpellOnTarget(61353,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32711', 2000, 1)
end

function spell1_32711(pUnit, Event) --@Summon Backbiter,Self--
pUnit:FullCastSpellOnTarget(61616,pUnit)
pUnit:RegisterEvent('Sorts_32711', 640, 1)
end

function Sorts_32711(pUnit, Event)
local choix_sorts_32711 = math.random(0, 1)
if choix_sorts_32711 == 0 then
pUnit:RegisterEvent('spell0_32711', 1, 1)
end
if choix_sorts_32711 == 1 then
pUnit:RegisterEvent('spell1_32711', 1, 1)
end
end

function mob32711_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32711', math.random(1500, 3000), 1)
end

function mob32711_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32711_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32711_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32711, 1, 'mob32711_Action')
RegisterUnitEvent(32711, 2, 'mob32711_Leave')
RegisterUnitEvent(32711, 3, 'mob32711_Kill')
RegisterUnitEvent(32711, 4, 'mob32711_Die')
